<?php
/**
 * Created by PhpStorm.
 * User: KaZeline
 * Date: 15-5-5
 * Time: 下午5:14
 * 暂时处理云游的产品排序
 */
if($_SESSION['saccount']!=123997){
    echo '{
        "status": "fail",
        "msg": "AccessDenied"
    }';
    exit;
}
//print_r($_POST);
//exit;
if(!is_numeric($_POST['px']) || $_POST['px']<0 ){
    echo '{
        "status": "fail",
        "msg": "Plz input Hot-Point larger than zero"
    }';
    exit;
}
define('DIR','/var/www/html/new/d/module/zax/caiyoumeng/px_config.txt');
$px = file_get_contents(DIR);
$px = json_decode($px,true);
$px[$_POST['lid']] = $_POST['px'];
$px = json_encode($px);
file_put_contents(DIR,$px);
echo '{
        "status": "ok",
        "msg": ""
    }';